package lt.liepasoft.sudoku.component;

import java.util.Map;

import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;

public class PaintBackground extends PaintComponent {

	public PaintBackground(Map <Data, Integer> options) {
		super(options);
		paint = new Paint();
		paint.setColor(Color.rgb(36, 189, 94));
		paint.setStyle(Style.FILL_AND_STROKE);
	}

	@Override
	public void paint(Canvas canvas) {
		canvas.drawRect(0, 0, options.get(Data.SCREEN_WIDTH), options.get(Data.SCREEN_HEIGHT), paint);
	}
}
